<clr-modal [(clrModalOpen)]="opened" [clrModalSize]="'lg'">
  <h3 class="modal-title">添加节点</h3>
  <div class="modal-body">
    <form clrForm #form='ngForm'>
      <clr-select-container>
        <label>选择主机</label>
        <select clrSelect [(ngModel)]="host" name="host">
          <option value="">请选择</option>
          <option *ngFor="let host of hosts" [value]="host.name">{{host.name}}</option>
        </select>
      </clr-select-container>
    </form>
  </div>
  <div class="modal-footer">
    <button type="button" class="btn btn-outline" (click)="close()">取消</button>
    <button type="button" class="btn btn-primary" [disabled]="form.invalid" (click)="onConfirm()">确认</button>
  </div>
</clr-modal>
